package com.wonder.app.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description:TODO(股票管理实体类)
 *
 * @author: Wonder
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_qing_sync_order")
@ApiModel(value="t_qing_sync_order对象", description="订单同步外层表")
public class QingSyncOrder extends Model<QingSyncOrder> {
    private static final long serialVersionUID = 1681912671853114L;

    @TableId(value ="id", type = IdType.AUTO)
    @ApiModelProperty(name = "id" , value = "编号")
    private Long id;

    @TableField(value = "billNo")
    @ApiModelProperty(name = "billNo" , value = "单据编号")
    private String billNo;

    @TableField(value = "userName")
    @ApiModelProperty(name = "userName" , value = "创建人")
    private String userName;

    @TableField(value = "userId")
    @ApiModelProperty(name = "userId" , value = "创建人id")
    private Integer userId;

    @TableField(value = "startTime")
    @ApiModelProperty(name = "startTime" , value = "开始时间")
    private Date startTime;

    @TableField(value = "endTime")
    @ApiModelProperty(name = "endTime" , value = "结束时间")
    private Date endTime;

    @TableField(value = "type")
    @ApiModelProperty(name = "type" , value = "单据类型")
    private String type;

    @TableField(value = "count")
    @ApiModelProperty(name = "count" , value = "单据总数量")
    private Integer count;

    @TableField(value = "successCount")
    @ApiModelProperty(name = "successCount" , value = "成功数量")
    private Integer successCount;


    @TableField(value = "failCount")
    @ApiModelProperty(name = "failCount" , value = "失败数量")
    private Integer failCount;

    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
